﻿using System.Collections.Generic;
using Core.Infrastructure.ScreenManager;

namespace Core.Infrastructure.Menu
{
    public class Menu : IMenu
    {
        public List<MenuItem> MenuItems { get; private set; }

        public Menu()
        {
            MenuItems = new List<MenuItem>
                            {
                                new MenuItem{ Description = "Authors", ScreenType = ScreenType.Authors },
                                new MenuItem{ Description = "Articles", ScreenType = ScreenType.ArticlesScreen},  
                                new MenuItem{ Description = "Themes", ScreenType = ScreenType.ThemeSelectScreen},
                            };
        }

        public void AddMenuItem(MenuItem menuItem)
        {
            if (MenuItems == null) MenuItems = new List<MenuItem>();
            MenuItems.Add(menuItem);
        }
    }
}
